#用于测试proxy中的performPostRequest函数
from fastapi import FastAPI, Request
from pydantic import BaseModel
import json

app = FastAPI()

@app.post('/print')
def getName(info: dict):
    print(info)
    return {
            "code": 200, #反馈是否能接收到命令
            "message":"success"
        }

# 启动服务器
if __name__ == "__main__":
    import uvicorn
    uvicorn.run(app, host="0.0.0.0", port=8001)
